package java_class_work.week03.practice03;

public class Test {
    public static void main(String[] args) {
        People p1 = new Teacher("陈迪凯",30);
        People p2 = new Student("陈真",22);

        System.out.println(p1.getName()+p1.getAge());
        p1.eat();
        ((Teacher) p1).speakingEnglish();
        System.out.println(p2.getName()+p2.getAge());
        p2.eat();
        ((Student) p2).speakingEnglish();
    }
}
